package com.cloud.bssp.java8.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

/**
 * @description： 集合和流有哪些区别
 * @author：weirx
 * @date：2021/10/20 15:50
 * @version：3.0
 */
public class CollectionAndStream {

    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Stream<Integer> stream = list.stream();
        stream.forEach(System.out::print);
        stream.forEach(System.out::print);


    }
}
